package com.hqyj.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.hqyj.pojo.R;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.pojo.UserInfo;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author rock
 * @since 2022-10-27 10:24:35
 */
public interface UserInfoService  {

    //发送验证码
    R sendCode(String email);
    //验证验证码是否正确
    R codeValiede(UserInfo userInfo);

    //短信发送验证码
    R smsSendCode(String phone) throws TencentCloudSDKException, JsonProcessingException;
}
